package com.ldg.user.config;


import org.apache.rocketmq.client.producer.DefaultMQProducer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class RockmqProducerConfig {

	@Bean
	public DefaultMQProducer defaultMQProducer(){
		DefaultMQProducer defaultMQProducer = new DefaultMQProducer();
		defaultMQProducer.setNamesrvAddr("192.168.56.110:9876");
		defaultMQProducer.setProducerGroup("producer-group");
		return defaultMQProducer;
	}

}
